package org.come.Jpanel;

import java.awt.*;

import javax.swing.JPanel;

import com.updateNew.MyIsif;

public class LingbaoCardJpanel extends JPanel {
    private CardLayout car;
    private LingbaoEquipmentJpanel equipmentJpanel;
    private LingbaoAttributeJpanel attributeJpanel;

    public LingbaoCardJpanel() {
        if ("水墨UI".equals(MyIsif.getStyle())) {
            car = new CardLayout();
            this.setPreferredSize(new Dimension(538, 469));
            this.setLayout(car);
            this.setOpaque(false);
            equipmentJpanel = new LingbaoEquipmentJpanel();
            this.add(equipmentJpanel, "l1");
            attributeJpanel = new LingbaoAttributeJpanel();
            this.add(attributeJpanel, "l2");
        } else {
            car = new CardLayout();
            this.setPreferredSize(new Dimension(512, 496));
            this.setLayout(car);
            this.setOpaque(false);
            equipmentJpanel = new LingbaoEquipmentJpanel();
            this.add(equipmentJpanel, "l1");
            attributeJpanel = new LingbaoAttributeJpanel();
            this.add(attributeJpanel, "l2");
        }

    }

    public CardLayout getCar() {
        return car;
    }

    public void setCar(CardLayout car) {
        this.car = car;
    }

    public LingbaoEquipmentJpanel getEquipmentJpanel() {
        return equipmentJpanel;
    }

    public void setEquipmentJpanel(LingbaoEquipmentJpanel equipmentJpanel) {
        this.equipmentJpanel = equipmentJpanel;
    }

    public LingbaoAttributeJpanel getAttributeJpanel() {
        return attributeJpanel;
    }

    public void setAttributeJpanel(LingbaoAttributeJpanel attributeJpanel) {
        this.attributeJpanel = attributeJpanel;
    }

}
